import Router from './router'
import React, {Suspense, useEffect} from 'react'
import { getUserInfo } from './utils'


const App = () => {

  useEffect(() => {
    // 初始化触发
    getUserInfo()
  }, [])

  return <Suspense fallback={<div>加载中。。。</div>}>
    <Router/>
  </Suspense>
}

export default App